<!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge"/>
<meta name="description" content="一个真实的网络问答社区，帮助你寻找答案，分享知识。"/>
<meta name="viewport" content="user-scalable=no, width=device-width, initial-scale=1.0, maximum-scale=1.0"/>
<title>所有问所有答</title>
<link rel="stylesheet" href="/public/css/style.css"/>
<link rel="stylesheet" href="/public/css/reg.css"/>
<script src="/public/js/jquery.js"></script>
<script src="/public/js/jquery.placeholder.js"></script>
</head>
<body >

<div id="login">
<h1>知乎 - 发现更大的世界</h1>
{% if len(msg) > 0 %}
<div class="failure" id="summary">
<ul>
{% for s in msg %}
{% block s %}
<li><i></i><span>{{ escape(s) }}</span></li>
{% end %}
{% end %}
</ul>
</div>
{% end %}
<form class="login" action="/login" method="post" id="loginForm">
<div><input class="text" type="email" name="email" spellcheck="false" placeholder="邮 箱" autofocus required="required" tabindex="1" value="{{email}}"></div>
<div><input class="text" type="password" name="password" placeholder="密 码" required="required" tabindex="2"></div>
<input type="hidden" name="nexturl" value="{{nexturl}}" />
<input class="button" type="submit" value="登 录" tabindex="3">
<div class="actions">
<input id="remember_me" type="checkbox" name="rememberme" checked>
<label class="remember_me" for="remember_me">记住我</label>
<span class="middot">&middot;</span>
<a class="reset" href="#">忘记密码？</a>
</div>
<div class="clearfix"></div>
</form>
<div class="promo">
<a href="/read" class="reader">
<span>知乎阅读 - 无需登录 立即使用</span>
</a>
</div>
<div class="footer">
&copy; 2012 知乎
<span class="middot">&middot;</span>
<a href="#" target="_blank">新浪微博</a>
<span class="middot">&middot;</span>
<a href="http://www.miibeian.gov.cn/" target="_blank">京ICP备11010522号</a>
<span class="middot">&middot;</span>
京公网安备11010802010035号
</div>
</div>
<div class="reg">
<a href="/apply" class="register">申请注册帐号</a>
</div>
<script>
$(function() {
var $form = $('#loginForm')
var support = (function(input) {
return function(attr) { return attr in input }
})(document.createElement('input'))
if ( !(support('placeholder') && $.browser.webkit) ) {
$('.text', $form).placeholder({
useNative: false,
hideOnFocus: false,
style: {
textShadow: 'none'
}
})
}
if ( !support('autofocus') ) {
$('input[autofocus]', $form).focus()
}
})
</script>
</body>
</html>
